<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8" isELIgnored="false"%>
    
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="utf-8">
<title>register</title>
</head>
<body>
 <div style="margin-left:35%;padding-top:5%;background:#80FFFF;margin-right:43%;">
   <form method="post" action="register" >
       <label ><span style="margin-left:30px;">username</span></label><input style="margin-left:20px;" name="username" /><br><br>
       <label ><span style="margin-left:60px;">salary</span></label><input style="margin-left:20px;" name="salary" /><br><br>
       <label><span style="margin-left:70px;">birth</span></label><input style="margin-left:20px;" name="birth" type="date" /><br><br>
       <label><span style="margin-left:80px;">sex</span></label><input style="margin-left:20px;" type="radio" value="true" checked="checked" name="sex" />男<input style="margin-left:20px;" value="false"  type="radio" name="sex" />女<br><br>
       <label><span style="margin-left:40px;">favcs:</span></label><br>
       <c:forEach items="${list }" var = "favc" varStatus="now">
       <input style="margin-left:120px;" value="${favc.id }"  type="checkbox" name="favcs" />${favc.favcName }
       <c:if test="${(now.index+1)%2==0 }">
          <br>       
       </c:if>
       </c:forEach>
       <br>
       <br>
       <button style="margin-left:120px;" type="submit">submit</button>
   </form>
  </div>
</body>
</html>